package net.zoneland.knowledge.service;

import net.zoneland.knowledge.enums.VisitTypeEnum;
import net.zoneland.knowledge.model.AttachmentPreviewForm;
import net.zoneland.knowledge.model.EsQuestion;
import net.zoneland.knowledge.model.QaBankWithBLOBs;

import java.util.List;

/**
 * 附件预览。
 */
public interface PreviewService {

    /**
     * 从数据库加载附件信息.
     * @param id
     * @return
     */
    AttachmentPreviewForm queryById(String id);

    /**
     * 更新临时附件信息状态
     * @param form
     * @return
     */
    int update(AttachmentPreviewForm form);

    /**
     * 存储附件临时信息.
     * @param form
     * @return
     */
    int insert(AttachmentPreviewForm form);
    
}
